<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>见习单位信息</title>
	<link rel="stylesheet" href="./styles/css/common.css">
</head>

<body>
	<!-- <div class="jx_top">
		<div class="jx_top_left clearfix">
			<a href="./index.html" class="sy_icon">就业超市首页</a>
		</div>
	</div> -->
	<script src="http://rsj.beijing.gov.cn/header.js"></script>

	<div class="jx_header">
		<div class="jx_header_con clearfix">
			<a href="./index.html" class="left">
				<img src="./styles/images/logo.png" alt="">
			</a>
			<span class="left">见习单位信息</span>
		</div>
	</div>
	<div class="jx_logo"></div>
	<div class="jx_center">
		<div class="table1_con">
			<table border="0" cellspacing="0" cellpadding="0" class="table _table1">
				<tr>
					<td width="10%" align="right" class="jx_td_bg">见习单位名称：</td>
					<td width="80%" align="left" class="jxjdmc"></td>
				</tr>
			</table>
			<table border="0" cellspacing="0" cellpadding="0" class="table _table1">
				<tr>
					<td width="10%" align="right" class="jx_td_bg">所属区县：</td>
					<td width="80%" align="left" class="ssqx"></td>
				</tr>
			</table>
			<table border="0" cellspacing="0" cellpadding="0" class="table _table1">
				<tr>
					<td width="10%" align="right" class="jx_td_bg">基地简介：</td>
					<td width="80%" align="left" class="jdjj"></td>
				</tr>
			</table>
		</div>

		<div class="table2_con" id="table2_con">
			<script type="text/html" id="table2_area">
				<%if(data.executeResult == 1){%>
					<table border="0" cellspacing="0" cellpadding="0" class="table _table2">
						<tr class="jx_top_tr">
							<td>见习岗位</td>
							<td>岗位数</td>
							<td>发布日期</td>
							<td>岗位有效期</td>
						</tr>
					<%for(var i=0;i<data.data.length;i++){%>
						<%var _data = data.data[i]%>
							<tr class='nomal_tr<%if(i%2 == 1){%> even <%}%>'>
								<td><%=_data.jxgw%></td>
								<td><%=_data.gws%></td>
								<td><%=_data.fbrq%></td>
								<td><%=_data.gwyxq%></td>
							</tr>
							<%}%>
					</table>
				<%}%>
			</script>
		</div>

	</div>
	<!-- 公共尾部 -->
	<!-- <include src="./include/footer.html"></include> -->
	<script src="http://rsj.beijing.gov.cn/footer.js"></script>
</body>
<script src="./common/vendor.js"></script>
<script src="./common/common.js"></script>
<script src="./common/generaltools.js"></script>
<script>
	$(function () {
		var jxjdid = $.paramObj().jxjdid;
		console.log(jxjdid)
		$.fetch({
			url:'/jgml/jxjdxx',
			type:'get',
			data:{
				jxjdid:jxjdid
			}
		}).done(function(res){
			var _data = res.returnData;
			if(+_data.executeResult === 1){
				$('.jxjdmc').text(_data.data.jxjdmc);
				$('.ssqx').text(_data.data.ssqx);
				$('.jdjj').text(_data.data.jj);
			}else{
				$.layerMsg(_data.message, '我知道了', function () {
					return false;
				});
			}
		});
		var index = 0;
		$('#table2_con').pageTool({
			url: '/jgml/jxgwxx',
			type: 'get',
			data: {
				jxjdid:jxjdid,
				pageSize:10,
				pageNum:index,
			},
			locator: 'returnData',
			callback: function (result) {
				console.log(result)
				var msg = result.returnData;
				if (msg.executeResult == '1') {
					index++;
				} else {
					$.layerMsg(msg.message, '我知道了', function () {
						return false;
					});
				}
			}
		});
	});
</script>

</html>
